extends Node2D
class_name Card

var face_up: bool = true setget set_face_up, is_face_up


func _ready() -> void:
    pass


func set_face_up(fu: bool) -> void:
    face_up = fu
    $Back.visible = !face_up
    pass

func is_face_up() -> bool:
    return face_up


func flip() -> void:
    face_up = !face_up
    $Back.visible = !$Back.visible
    pass
